package com.xilihui.xlh.business.entities;

import com.xilihui.xlh.core.app.BaseEntity;

import java.util.List;

/**
 * Created by Administrator on 2018/9/12.
 */

public class ConfirmOrderEntity extends BaseEntity{


    /**
     * address : {"address_id":"830","user_id":"2628","consignee":"伟哥","email":"","country":"0","province":{"id":"1","name":"北京市","level":"1","parent_id":"0"},"city":{"id":"10","name":"朝阳门街道","level":"4","parent_id":"3"},"district":{"id":"20","name":"金融街街道","level":"4","parent_id":"14"},"twon":"0","address":"","zipcode":"","mobile":"13405958785","is_default":"1","is_pickup":"0"}
     * order : {"pass":true,"order_all_price":"1169","order_all_integral":"0","pStatusArray":[{"id":"58","goods_id":"50","goods_name":"华为 HUAWEI 畅享5S 全网通 2GB RAM+16GB ROM（金色）","goods_num":"1","goods_price":"1169.00","spec_item_id":"92","spec_key":"11_13_21_55","spec_key_name":"网络:4G 内存:16G 屏幕:触屏 颜色:黑色","have_stock":true,"total_price":"1169","goods_sn":"TP0000050","give_integral":"50","deliveries":[{"name":"快递包邮","agent_id":"0"},{"name":"市辖区 北京市","agent_id":"11"},{"name":"厦门市 福建省","agent_id":"1"},{"name":" ","agent_id":"9"}],"integral_money":"0","integral":"0","order_amount":"1169","original_img":"/public/upload/goods/2016/01-13/5696034e703e1.jpg"}]}
     * pay_points : 99550
     * point_rate : 1
     */

    private AddressBean address;
    private OrderBean order;
    private int pay_points;
    private int point_rate;

    public AddressBean getAddress() {
        return address;
    }

    public void setAddress(AddressBean address) {
        this.address = address;
    }

    public OrderBean getOrder() {
        return order;
    }

    public void setOrder(OrderBean order) {
        this.order = order;
    }

    public int getPay_points() {
        return pay_points;
    }

    public void setPay_points(int pay_points) {
        this.pay_points = pay_points;
    }

    public int getPoint_rate() {
        return point_rate;
    }

    public void setPoint_rate(int point_rate) {
        this.point_rate = point_rate;
    }

    public static class AddressBean {
        /**
         * address_id : 830
         * user_id : 2628
         * consignee : 伟哥
         * email : 
         * country : 0
         * province : {"id":"1","name":"北京市","level":"1","parent_id":"0"}
         * city : {"id":"10","name":"朝阳门街道","level":"4","parent_id":"3"}
         * district : {"id":"20","name":"金融街街道","level":"4","parent_id":"14"}
         * twon : 0
         * address : 
         * zipcode : 
         * mobile : 13405958785
         * is_default : 1
         * is_pickup : 0
         */

        private String address_id;
        private String user_id;
        private String consignee;
        private String email;
        private String country;
        private ProvinceBean province;
        private CityBean city;
        private DistrictBean district;
        private String twon;
        private String address;
        private String zipcode;
        private String mobile;
        private String is_default;
        private String is_pickup;

        public String getAddress_id() {
            return address_id;
        }

        public void setAddress_id(String address_id) {
            this.address_id = address_id;
        }

        public String getUser_id() {
            return user_id;
        }

        public void setUser_id(String user_id) {
            this.user_id = user_id;
        }

        public String getConsignee() {
            return consignee;
        }

        public void setConsignee(String consignee) {
            this.consignee = consignee;
        }

        public String getEmail() {
            return email;
        }

        public void setEmail(String email) {
            this.email = email;
        }

        public String getCountry() {
            return country;
        }

        public void setCountry(String country) {
            this.country = country;
        }

        public ProvinceBean getProvince() {
            return province;
        }

        public void setProvince(ProvinceBean province) {
            this.province = province;
        }

        public CityBean getCity() {
            return city;
        }

        public void setCity(CityBean city) {
            this.city = city;
        }

        public DistrictBean getDistrict() {
            return district;
        }

        public void setDistrict(DistrictBean district) {
            this.district = district;
        }

        public String getTwon() {
            return twon;
        }

        public void setTwon(String twon) {
            this.twon = twon;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getZipcode() {
            return zipcode;
        }

        public void setZipcode(String zipcode) {
            this.zipcode = zipcode;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getIs_default() {
            return is_default;
        }

        public void setIs_default(String is_default) {
            this.is_default = is_default;
        }

        public String getIs_pickup() {
            return is_pickup;
        }

        public void setIs_pickup(String is_pickup) {
            this.is_pickup = is_pickup;
        }

        public static class ProvinceBean {
            /**
             * id : 1
             * name : 北京市
             * level : 1
             * parent_id : 0
             */

            private String id;
            private String name;
            private String level;
            private String parent_id;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getLevel() {
                return level;
            }

            public void setLevel(String level) {
                this.level = level;
            }

            public String getParent_id() {
                return parent_id;
            }

            public void setParent_id(String parent_id) {
                this.parent_id = parent_id;
            }
        }

        public static class CityBean {
            /**
             * id : 10
             * name : 朝阳门街道
             * level : 4
             * parent_id : 3
             */

            private String id;
            private String name;
            private String level;
            private String parent_id;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getLevel() {
                return level;
            }

            public void setLevel(String level) {
                this.level = level;
            }

            public String getParent_id() {
                return parent_id;
            }

            public void setParent_id(String parent_id) {
                this.parent_id = parent_id;
            }
        }

        public static class DistrictBean {
            /**
             * id : 20
             * name : 金融街街道
             * level : 4
             * parent_id : 14
             */

            private String id;
            private String name;
            private String level;
            private String parent_id;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getLevel() {
                return level;
            }

            public void setLevel(String level) {
                this.level = level;
            }

            public String getParent_id() {
                return parent_id;
            }

            public void setParent_id(String parent_id) {
                this.parent_id = parent_id;
            }
        }
    }

    public static class OrderBean {
        /**
         * pass : true
         * order_all_price : 1169
         * order_all_integral : 0
         * pStatusArray : [{"id":"58","goods_id":"50","goods_name":"华为 HUAWEI 畅享5S 全网通 2GB RAM+16GB ROM（金色）","goods_num":"1","goods_price":"1169.00","spec_item_id":"92","spec_key":"11_13_21_55","spec_key_name":"网络:4G 内存:16G 屏幕:触屏 颜色:黑色","have_stock":true,"total_price":"1169","goods_sn":"TP0000050","give_integral":"50","deliveries":[{"name":"快递包邮","agent_id":"0"},{"name":"市辖区 北京市","agent_id":"11"},{"name":"厦门市 福建省","agent_id":"1"},{"name":" ","agent_id":"9"}],"integral_money":"0","integral":"0","order_amount":"1169","original_img":"/public/upload/goods/2016/01-13/5696034e703e1.jpg"}]
         */

        private boolean pass;
        private float order_all_price;
        private String order_all_integral;
        private List<PStatusArrayBean> pStatusArray;

        public boolean isPass() {
            return pass;
        }

        public void setPass(boolean pass) {
            this.pass = pass;
        }

        public float getOrder_all_price() {
            return order_all_price;
        }

        public void setOrder_all_price(float order_all_price) {
            this.order_all_price = order_all_price;
        }

        public String getOrder_all_integral() {
            return order_all_integral;
        }

        public void setOrder_all_integral(String order_all_integral) {
            this.order_all_integral = order_all_integral;
        }

        public List<PStatusArrayBean> getPStatusArray() {
            return pStatusArray;
        }

        public void setPStatusArray(List<PStatusArrayBean> pStatusArray) {
            this.pStatusArray = pStatusArray;
        }

        public static class PStatusArrayBean {
            /**
             * id : 58
             * goods_id : 50
             * goods_name : 华为 HUAWEI 畅享5S 全网通 2GB RAM+16GB ROM（金色）
             * goods_num : 1
             * goods_price : 1169.00
             * spec_item_id : 92
             * spec_key : 11_13_21_55
             * spec_key_name : 网络:4G 内存:16G 屏幕:触屏 颜色:黑色
             * have_stock : true
             * total_price : 1169
             * goods_sn : TP0000050
             * give_integral : 50
             * deliveries : [{"name":"快递包邮","agent_id":"0"},{"name":"市辖区 北京市","agent_id":"11"},{"name":"厦门市 福建省","agent_id":"1"},{"name":" ","agent_id":"9"}]
             * integral_money : 0
             * integral : 0
             * order_amount : 1169
             * original_img : /public/upload/goods/2016/01-13/5696034e703e1.jpg
             */

            private String id;
            private String goods_id;
            private String goods_name;
            private int goods_num;
            private float goods_price;
            private String spec_item_id;
            private String spec_key;
            private String spec_key_name;
            private boolean have_stock;
            private float total_price;
            private String goods_sn;
            private String give_integral;
            private float integral_money;
            private String integral;
            private String order_amount;
            private String original_img;
            private List<DeliveriesBean> deliveries;
            
            private boolean isSelect = false;

            public boolean isSelect() {
                return isSelect;
            }

            public void setSelect(boolean select) {
                isSelect = select;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getGoods_id() {
                return goods_id;
            }

            public void setGoods_id(String goods_id) {
                this.goods_id = goods_id;
            }

            public String getGoods_name() {
                return goods_name;
            }

            public void setGoods_name(String goods_name) {
                this.goods_name = goods_name;
            }

            public int getGoods_num() {
                return goods_num;
            }

            public void setGoods_num(int goods_num) {
                this.goods_num = goods_num;
            }

            public float getGoods_price() {
                return goods_price;
            }

            public void setGoods_price(float goods_price) {
                this.goods_price = goods_price;
            }

            public String getSpec_item_id() {
                return spec_item_id;
            }

            public void setSpec_item_id(String spec_item_id) {
                this.spec_item_id = spec_item_id;
            }

            public String getSpec_key() {
                return spec_key;
            }

            public void setSpec_key(String spec_key) {
                this.spec_key = spec_key;
            }

            public String getSpec_key_name() {
                return spec_key_name;
            }

            public void setSpec_key_name(String spec_key_name) {
                this.spec_key_name = spec_key_name;
            }

            public boolean isHave_stock() {
                return have_stock;
            }

            public void setHave_stock(boolean have_stock) {
                this.have_stock = have_stock;
            }

            public float getTotal_price() {
                return total_price;
            }

            public void setTotal_price(float total_price) {
                this.total_price = total_price;
            }

            public String getGoods_sn() {
                return goods_sn;
            }

            public void setGoods_sn(String goods_sn) {
                this.goods_sn = goods_sn;
            }

            public String getGive_integral() {
                return give_integral;
            }

            public void setGive_integral(String give_integral) {
                this.give_integral = give_integral;
            }

            public float getIntegral_money() {
                return integral_money;
            }

            public void setIntegral_money(float integral_money) {
                this.integral_money = integral_money;
            }

            public String getIntegral() {
                return integral;
            }

            public void setIntegral(String integral) {
                this.integral = integral;
            }

            public String getOrder_amount() {
                return order_amount;
            }

            public void setOrder_amount(String order_amount) {
                this.order_amount = order_amount;
            }

            public String getOriginal_img() {
                return original_img;
            }

            public void setOriginal_img(String original_img) {
                this.original_img = original_img;
            }

            public List<DeliveriesBean> getDeliveries() {
                return deliveries;
            }

            public void setDeliveries(List<DeliveriesBean> deliveries) {
                this.deliveries = deliveries;
            }

            public static class DeliveriesBean {
                /**
                 * name : 快递包邮
                 * agent_id : 0
                 */

                private String name;
                private String agent_id;
                private boolean flag = false;

                public boolean isFlag() {
                    return flag;
                }

                public void setFlag(boolean flag) {
                    this.flag = flag;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getAgent_id() {
                    return agent_id;
                }

                public void setAgent_id(String agent_id) {
                    this.agent_id = agent_id;
                }
            }
        }
    }
}
